jade.content.schema
Class ConceptSchema
java.lang.Object
|
+--jade.content.schema.ObjectSchema
|
+--jade.content.schema.TermSchema
|
+--jade.content.schema.ConceptSchema
- public class ConceptSchema
- extends TermSchema
- Author:
- Federico Bergenti - Universita` di Parma
|
Field Summary |
static java.lang.String |
BASE_NAME
|
|
Constructor Summary |
ConceptSchema(java.lang.String name)
Creates a schema with a name. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BASE_NAME
public static final java.lang.String BASE_NAME
ConceptSchema
public ConceptSchema(java.lang.String name)
- Creates a schema with a name.
- Parameters:
name -
getBaseSchema
public static TermSchema getBaseSchema()
- Retrieves the base schema of this schema.
- Returns:
- the base schema.
add
public void add(java.lang.String name,
TermSchema slotSchema)
- Adds a slot to the schema.
- Parameters:
name - name of the slot.slotSchema - schema of the slot.
add
public void add(java.lang.String name,
TermSchema slotSchema,
int cardinality)
- Adds a slot to the schema.
- Parameters:
name - name of the slot.slotSchema - schema of the slot.cardinality - cardinality of the slot, i.e., optional or mandatory.
addSuperSchema
public void addSuperSchema(ConceptSchema superClassSchema)
- Adds a superclass to this schema.
- Parameters:
superClassSchema -
newInstance
public AbsObject newInstance()
- Creates a new instance.
- Overrides:
- newInstance in class TermSchema
- Returns:
- the new instance.